﻿using SqlSugar;
using System;

namespace NetCore.Model.Enity
{
    /// <summary>
    /// 原材料历史记录表
    ///</summary>
    [SugarTable("sys_rawmaterial_historicalrecords")]
    public class SysRawmaterialHistoricalrecords
    {
        /// <summary>
        /// 主键
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 类型1添加2减少
        ///</summary>
        [SugarColumn(ColumnName = "type")]
        public int Type { get; set; }

        /// <summary>
        /// 数量
        ///</summary>
        [SugarColumn(ColumnName = "quantity")]
        public int Quantity { get; set; }

        /// <summary>
        /// 操作者
        ///</summary>
        [SugarColumn(ColumnName = "userid")]
        public long Userid { get; set; }

        /// <summary>
        /// 添加时间
        ///</summary>
        [SugarColumn(ColumnName = "addtime")]
        public DateTime Addtime { get; set; }
    }
}